import React, { Component } from 'react';
import { Context, UseContext } from '../Context';

class ContextTypePage extends Component {
  static contextType = Context
  // static contextType = UseContext

  render() {
    const { themeColor } = this.context
    console.log(this.context);

     return (
      <div>
        <h3 style={{color: themeColor}}>ContextTypePage</h3>
      </div>
     )
  }
}

export default ContextTypePage